导航菜单
首页 >  elFinder Open  > GitHub

GitHub

what's elfinder-2.x-servlet

GitHub issuesGitHub forksGitHub starsGitHub license

elfinder-2.x-servlet implements a java servlet for elfinder-2.x connector

elfinder is an Open-source file manager for web, written in JavaScript using jQuery and jQuery UI.see also http://elfinder.org

for elfinder-1.2 users, please go to https://github.com/Studio-42/elfinder-servlet.

importing elfinder-2.x-servlet

this project is released as an artifact on the central repostory

use

    org.grapheco    elfinder-servlet-2    1.4    classes

to add dependency in your pom.xml

building elfinder-2.x-servlet

the source files includes:

src/main/webapp : a normal j2ee application includes elfinder, WEB-INF...src/main/java: source codes for elfinder-servletsrc/main/resources: source codes for elfinder-servlet

To build this project with maven run:

mvn install

to run this project within a jetty container use:

mvn jetty:runusing elfinder-2.x-servlet in your web apps

just use following codes to tell elfinder to connect with server-side servlet:

$(document).ready(function() {$('#elfinder').elfinder({url : 'elfinder-servlet/connector',});});

in your web.xml, following codes should be added to enable the servlet:

elfinderorg.springframework.web.servlet.DispatcherServletelfinder/elfinder-servlet/*

yes! elfinder-2.x-servlet is developed upon SpringFramework (http://springframework.org)

an example elfinder-servlet.xml configuration is shown below:

相关推荐: